package com.xz.danhuaapiclientsdk.utils;

import cn.hutool.crypto.digest.DigestAlgorithm;
import cn.hutool.crypto.digest.Digester;
import com.xz.danhuaapiclientsdk.client.DanHuaApiClient;

/**
 * @author xuzhou
 * @version 1.0
 * @createTime 2024-07-06
 * @description 生成sign工具类
 */
public class SignUtils {
    public static String genSign(String body, String secretKey) {
        Digester md5 = new Digester(DigestAlgorithm.SHA256);
        String content = body + '*' + secretKey;
        return md5.digestHex(content);
    }
}
